﻿using System;

namespace _01_AdapterModel_Basic
{
    class Program
    {
        static void Main(string[] args)
        {
            Target target = new Adapter();
            target.Request();
            Console.Read();
        }
    }

    class Target
    {
        public virtual void Request()
        {
            Console.WriteLine("普通请求!");
        }
    }
    // 需要的适配器类
    class Adaptee
    {
        public void SpecificRequest()
        {
            Console.WriteLine("特殊请求!");
        }
    }

    class Adapter : Target
    {
        private Adaptee adaptee = new Adaptee();
        public override void Request()
        {
            adaptee.SpecificRequest();
        }
    }
}
